<script>
import MyItem from "@/components/MyItem.vue";

export default {
name: "MyList",
  components: {MyItem},
  props: {
    todoList: Array,
    checkTodo: Function,
    delTodo: Function
  }

}
</script>

<template>
  <ul class="todo-main">
    <MyItem v-for="(todo, id) in todoList"
            :key="id"
            :todoObj="todo"
            :checkTodo="checkTodo"
            :delTodo = "delTodo"
    ></MyItem>
  </ul>
</template>

<style scoped>

</style>